/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.scrumpmt.domain;

import java.util.Collection;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author agumpg
 */
@Entity
@Table(name = "TIPO_REUNION")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "TipoReunion.findAll", query = "SELECT t FROM TipoReunion t"),
    @NamedQuery(name = "TipoReunion.findById", query = "SELECT t FROM TipoReunion t WHERE t.id = :id"),
    @NamedQuery(name = "TipoReunion.findByDes", query = "SELECT t FROM TipoReunion t WHERE t.des = :des")})
public class TipoReunion extends BaseEntity {
    @Column(name = "des", nullable=false)
    private String des;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "idTipreunion")
    private Collection<Reunion> reunionCollection;

    public TipoReunion() {
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @XmlTransient
    public Collection<Reunion> getReunionCollection() {
        return reunionCollection;
    }

    public void setReunionCollection(Collection<Reunion> reunionCollection) {
        this.reunionCollection = reunionCollection;
    }

}
